package learn

import (
	"fmt"
)

func TypeTest() string {
	var name string = "jackchanel"
	var age int = 18
	isBoy := true
	weight := 59.5
	var height float32 = 180.5

	fmt.Printf("name->%v,age->%v,isBoy->%v,the type of weight is %T, height is %v\n", name, age, isBoy, weight, height)

	p := &name
	arr := []int{1, 2, 3}

	fmt.Printf("type of p is %T, value of p is %v\n", p, p)
	fmt.Printf("type of arr is %T, value of arr is %v\n", arr, arr)
	return "success"
}
